public class GameConstants {
    private static int screenWidth = 1280;
    private static int screenHeight = 720;
    public static float GAME_SPEED = 1f;
    public static boolean GAME_PAUSED = false;//游戏暂停

    //音乐文件常量
    public static final String MAIN_MENU_MUSIC = "/music/Delos - Light Above The Sky.mp3";//Delos - Light Above The Sky
    public static final String GAME_MUSIC = "/music/Evan Call - Zoltraak.mp3";//Evan Call - Zoltraak

    public static int getScreenWidth() {
        return screenWidth;
    }

    public static int getScreenHeight() {
        return screenHeight;
    }

    public static void setScreenSize(int width, int height) {
        screenWidth = width;
        screenHeight = height;
    }

    public static int getGroundY() {
        return screenHeight - GameWorld.GRID_SIZE; // 地面高度为屏幕高度减去一个格子
    }

    public static int getAdjustedScreenWidth() {
        return Math.max(screenWidth, 640); // 设置最小宽度
    }

    public static int getAdjustedScreenHeight() {
        return Math.max(screenHeight, 360); // 设置最小高度
    }

}